<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="/js/vue2.js"></script>
  </head>
  <style>
   .blue{
       color:red
   }
   .line{
       text-decoration:underline;
   }
  
  
  </style>
  <body>
    <div id="app">
      <p>{{msg}}</p>
      <!-- <a :href="'edit.html?id='+id'">登录</a> -->
      <p v-bind:class='[blue,line]'>至此流年各天涯</p>
      <p :class='{blue:hasblue}'>借我十年借我亡命天涯的勇敢</p>
          <button @click='hasblue=!hasblue'>后来的我们 </button>
    </div>


    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          msg: "你好世界",
          id:1,
          blue:'blue',
          line:'line',
          hasblue:true,
          hasline:false
        }
      });
    </script>
  </body>
</html>
